<?php 
$filePath = "./resources/uploads/user81.csv";
$row = 1;
$file = fopen($filePath,"rb");

while ($data = fgetcsv($file, 1000, ",")) {
    $num = count($data);
    echo "<p> $num fields in line $row: <br>\n";
    $row++;
    for ($c=0; $c < $num; $c++) {
        echo $data[$c] . "<br>\n";
    }
}
fclose($file);

?>

